<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="4.js"></script>
</head>
<body>
    <h1>欢迎来到我的网页！</h1>
    <p>请输入您的姓名：</p>
    <input type="text" id="name"></input>
    <button onclick="greet()">提交</button>
    <p id="greeting"></p>
</body>
</html>